package com.teach.service;

import com.teach.dto.ArticleSearch;
import com.teach.entity.Article;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <pre>
 * TODO : 文章业务逻辑接口
 * 文章
 * ClassName : com.teach.service.ArticleService
 * Author : J.L.Zhou
 * Tel : 15111047708
 * E-Mail : 12020042@qq.com
 * Date : 2020-10-31 03:14
 * Version : 1.0
 * </pre>
 */
public interface ArticleService extends IService<Article> {
	
	QueryWrapper<Article> getQueryWrapper(Article article);
	/**
	 * 按搜索条件分页
	 * @param search
	 * @param page
	 * @return
	 */
	Page<Article> page(ArticleSearch search,Page<Article> page);
	
	/**
	 * 根据搜索条件构造where条件
	 * @param search
	 * @return
	 */
	QueryWrapper<Article> getQueryWrapper(ArticleSearch search);
	

}
